home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Przegladarki internetowe / Mozilla Seamonkey 1.0.5 pl / seamonkey-1.0.5.pl-PL.win32.installer.exe / MAIL.XPI / bin / chrome / messenger.jar / content / messenger / am-server.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-07-20  |  15.3 KB  |  347 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.  
  5.  ***** BEGIN LICENSE BLOCK *****
  6.  Version: MPL 1.1/GPL 2.0/LGPL 2.1
  7.  
  8.  The contents of this file are subject to the Mozilla Public License Version
  9.  1.1 (the "License"); you may not use this file except in compliance with
  10.  the License. You may obtain a copy of the License at
  11.  http://www.mozilla.org/MPL/
  12.  
  13.  Software distributed under the License is distributed on an "AS IS" basis,
  14.  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  15.  for the specific language governing rights and limitations under the
  16.  License.
  17.  
  18.  The Original Code is Mozilla Communicator client code, released
  19.  March 31, 1998.
  20.  
  21.  The Initial Developer of the Original Code is
  22.  Netscape Communications Corporation.
  23.  Portions created by the Initial Developer are Copyright (C) 1998-2003
  24.  the Initial Developer. All Rights Reserved.
  25.  
  26.  Contributor(s):
  27.    H├Ñkan Waara <hwaara@chello.se>
  28.    bienvenu@nventure.com
  29.  
  30.  Alternatively, the contents of this file may be used under the terms of
  31.  either of the GNU General Public License Version 2 or later (the "GPL"),
  32.  or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  33.  in which case the provisions of the GPL or the LGPL are applicable instead
  34.  of those above. If you wish to allow use of your version of this file only
  35.  under the terms of either the GPL or the LGPL, and not to allow others to
  36.  use your version of this file under the terms of the MPL, indicate your
  37.  decision by deleting the provisions above and replace them with the notice
  38.  and other provisions required by the GPL or the LGPL. If you do not delete
  39.  the provisions above, a recipient may use your version of this file under
  40.  the terms of any one of the MPL, the GPL or the LGPL.
  41.  
  42.  ***** END LICENSE BLOCK ***** -->
  43.  
  44. <?xml-stylesheet href="chrome://messenger/skin/accountManage.css" type="text/css"?>
  45.  
  46. <!DOCTYPE page SYSTEM "chrome://messenger/locale/am-server-top.dtd" >
  47.  
  48. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  49.       onload="parent.onPanelLoaded('am-server.xul');">
  50.  
  51.   <script type="application/x-javascript" src="chrome://messenger/content/AccountManager.js"/>
  52.   <script type="application/x-javascript" src="chrome://messenger/content/am-server.js"/>
  53.   <script type="application/x-javascript" src="chrome://messenger/content/am-prefs.js"/>
  54.   <script type="application/x-javascript" src="chrome://messenger/content/amUtils.js"/>
  55.   <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
  56.  
  57.   <broadcaster id="broadcaster_doBiff"/>
  58.   <broadcaster id="broadcaster_notify"/>
  59.   
  60.   <label hidden="true" wsm_persist="true" id="server.type"/>
  61.  
  62.   <dialogheader title="&serverSettings.label;"/>
  63.  
  64.   <grid>
  65.     <columns>
  66.       <column/>
  67.       <column/>
  68.     </columns>
  69.     <rows>      
  70.       <row align="center">
  71.         <label value="&serverType.label;"/>
  72.         <label id="servertype.verbose"/>
  73.       </row>
  74.       <row align="center">
  75.         <hbox>
  76.             <label value="&serverName.label;" accesskey="&serverName.accesskey;"
  77.                    control="server.realHostName"/>
  78.         </hbox>
  79.         <hbox align="center">
  80.             <label id="fixedServerName" collapsed="true" use="server.realHostName"/>
  81.             <textbox wsm_persist="true" size="20" id="server.realHostName"
  82.                      prefstring="mail.server.%serverkey%.realhostname" class="uri-element"/>
  83.             <label hidefor="movemail" value="&port.label;"
  84.                    accesskey="&port.accesskey;" control="server.port"/>
  85.             <label id="fixedServerPort" hidefor="movemail" 
  86.                    collapsed="true" use="server.port"/>
  87.             <textbox wsm_persist="true" size="3" id="server.port"
  88.                      preftype="int" hidefor="movemail" 
  89.                      prefstring="mail.server.%serverkey%.port"/>
  90.             <label value="&serverPortDefault.label;" hidefor="movemail"/>
  91.             <label id="defaultPort" hidefor="movemail"/>
  92.         </hbox>
  93.       </row>
  94.       <row align="center">
  95.         <hbox align="center" hidefor="nntp">
  96.             <label value="&userName.label;"
  97.                    accesskey="&userName.accesskey;"
  98.                    control="server.realUsername"/>
  99.         </hbox>
  100.         <hbox align="center" hidefor="nntp">
  101.             <label id="fixedUserName" collapsed="true" use="server.realUsername"/>
  102.             <textbox wsm_persist="true" size="20" id="server.realUsername"
  103.                      prefstring="mail.server.%serverkey%.realusername"/>
  104.         </hbox>
  105.       </row>
  106.     </rows>
  107.   </grid>
  108.  
  109.   <separator class="thin"/>
  110.  
  111.   <groupbox hidefor="movemail">
  112.     <caption label="&securitySettings.label;"/>
  113.     <vbox align="start" hidefor="nntp,movemail">
  114.       <label value="&socketType.label;"/>
  115.       <radiogroup wsm_persist="true" id="server.socketType"
  116.                   prefattribute="value"
  117.                   prefstring="mail.server.%serverkey%.socketType"
  118.                   oncommand="secureSelect();"
  119.                   orient="horizontal" class="indent">
  120.         <radio value="0" id="neverSecure"
  121.                label="&neverSecure.label;" accesskey="&neverSecure.accesskey;"/>
  122.         <radio value="1" id="sometimesSecure"
  123.                label="&sometimesSecure.label;" accesskey="&sometimesSecure.accesskey;"/>
  124.         <radio value="2" id="alwaysSecure"
  125.                label="&alwaysSecure.label;" accesskey="&alwaysSecure.accesskey;"/>
  126.         <radio value="3" id="alwaysSSL"
  127.                label="&alwaysSSL.label;" accesskey="&alwaysSSL.accesskey;"/>
  128.       </radiogroup>
  129.     </vbox>
  130.     <checkbox wsm_persist="true" id="server.isSecure"
  131.               label="&isSecure.label;" hidefor="pop3,imap,movemail"
  132.               oncommand="secureSelect();"
  133.               accesskey="&isSecure.accesskey;"
  134.               prefattribute="value"
  135.               prefstring="mail.server.%serverkey%.isSecure"/>
  136.     <checkbox wsm_persist="true" id="server.useSecAuth"
  137.               label="&useSecAuth.label;" hidefor="nntp,movemail"
  138.               accesskey="&useSecAuth.accesskey;"
  139.               prefattribute="value"
  140.               prefstring="mail.server.%serverkey%.useSecAuth"/>
  141.   </groupbox>
  142.  
  143.   <groupbox>
  144.     <caption label="&serverSettings.label;"/>
  145.     <vbox align="start">
  146.     <checkbox wsm_persist="true"
  147.               id="server.loginAtStartUp" hidefor="nntp"
  148.               label="&loginAtStartup.label;"
  149.               accesskey="&loginAtStartup.accesskey;"
  150.               prefattribute="value"
  151.               prefstring="mail.server.%serverkey%.login_at_startup"/>
  152.   </vbox>
  153. <!--
  154.   <checkbox wsm_persist="true" id="server.rememberPassword" hidefor="nntp"
  155.             value="&savePassword.label;"/>
  156. -->
  157.   <hbox align="center">
  158.     <checkbox wsm_persist="true" id="server.doBiff" label="&biffStart.label;"
  159.               accesskey="&biffStart.accesskey;"
  160.               oncommand="setupBiffUI();"
  161.               prefattribute="value"
  162.               prefstring="mail.server.%serverkey%.check_new_mail"/>
  163.     <textbox wsm_persist="true" id="server.biffMinutes" size="3" 
  164.              observes="broadcaster_doBiff"
  165.              preftype="int"
  166.              prefstring="mail.server.%serverkey%.check_time"/>
  167.     <label id="biffEnd" control="server.biffMinutes" value="&biffEnd.label;"/>
  168.   </hbox>
  169.   <!-- POP3 -->
  170.   <vbox align="start" hidefor="imap,nntp,movemail">
  171.     <checkbox wsm_persist="true" id="server.downloadOnBiff"
  172.               label="&downloadOnBiff.label;" prefattribute="value"
  173.               accesskey="&downloadOnBiff.accesskey;"
  174.               prefstring="mail.server.%serverkey%.download_on_biff"/>
  175.  
  176.     <checkbox wsm_persist="true" id="pop3.headersOnly"
  177.               label="&headersOnly.label;"
  178.               accesskey="&headersOnly.accesskey;"
  179.               prefattribute="value"
  180.               prefstring="mail.server.%serverkey%.headers_only"/>
  181.  
  182.     <checkbox wsm_persist="true" id="pop3.leaveMessagesOnServer"
  183.               label="&leaveOnServer.label;" oncommand="setupMailOnServerUI();"
  184.               accesskey="&leaveOnServer.accesskey;"
  185.               prefattribute="value"
  186.               prefstring="mail.server.%serverkey%.leave_on_server"/>
  187.  
  188.     <hbox align="center">
  189.       <checkbox wsm_persist="true" id="pop3.deleteByAgeFromServer" class="indent"
  190.                 label="&deleteByAgeFromServer.label;" oncommand="setupAgeMsgOnServerUI();"
  191.                 accesskey="&deleteByAgeFromServer.accesskey;"
  192.                 prefattribute="value"
  193.                 prefstring="mail.server.%serverkey%.delete_by_age_from_server"/>
  194.       <textbox wsm_persist="true" id="pop3.numDaysToLeaveOnServer" size="3" 
  195.                preftype="int"
  196.                prefstring="mail.server.%serverkey%.num_days_to_leave_on_server"/>
  197.       <label id="daysEnd" control="pop3.numDaysToLeaveOnServer" value="&daysEnd.label;"/>
  198.     </hbox>
  199.  
  200.     <checkbox wsm_persist="true" id="pop3.deleteMailLeftOnServer" class="indent"
  201.               label="&deleteOnServer.label;"
  202.               accesskey="&deleteOnServer.accesskey;"
  203.               prefattribute="value"
  204.               prefstring="mail.server.%serverkey%.delete_mail_left_on_server"/>
  205.  
  206.   <!-- hidden elements for data transfer to and from advanced... dialog -->
  207.   <hbox flex="1" hidefor="imap,nntp,movemail" hidden="true">
  208.     <checkbox hidden="true" wsm_persist="true" id="pop3.deferGetNewMail"
  209.               prefattribute="value"
  210.               prefstring="mail.server.%serverkey%.deferGetNewMail"/>
  211.     <label hidden="true" wsm_persist="true" id="pop3.deferredToAccount"
  212.               prefattribute="value"
  213.               prefstring="mail.server.%serverkey%.deferredToAccount"/>
  214.  
  215.   </hbox>
  216.   </vbox>
  217.   <!-- IMAP -->
  218.   <hbox align="center" id="imap.deleteModel.box" hidefor="pop3,nntp,movemail">
  219.     <label value="&deleteMessagePrefix.label;"
  220.            accesskey="&deleteMessagePrefix.accesskey;"
  221.            control="imap.deleteModel"/>/>
  222.     <menulist wsm_persist="true" id="imap.deleteModel" prefstring="mail.server.%serverkey%.delete_model">
  223.       <menupopup>
  224.         <menuitem value="1" label="&modelMoveToTrash.label;"/>
  225.         <menuitem value="0" label="&modelMarkDeleted.label;"/>
  226.         <menuitem value="2" label="&modelDeleteImmediately.label;"/>
  227.       </menupopup>
  228.     </menulist>
  229.     <spacer flex="1"/>
  230.   </hbox>
  231.  
  232.   <hbox flex="1" hidefor="pop3,nntp,movemail" hidden="true">
  233.     <checkbox hidden="true" wsm_persist="true" id="imap.dualUseFolders"
  234.               prefattribute="value"
  235.               prefstring="mail.server.%serverkey%.dual_use_folders"/>
  236.     <checkbox hidden="true" wsm_persist="true" id="imap.usingSubscription"
  237.               prefattribute="value"
  238.               prefstring="mail.server.%serverkey%.using_subscription"/>
  239.     <checkbox hidden="true" wsm_persist="true" id="imap.useIdle"
  240.               prefattribute="value"
  241.               prefstring="mail.server.%serverkey%.use_idle"/>
  242.     <label hidden="true" wsm_persist="true" id="imap.maximumConnectionsNumber"/>
  243.     <label hidden="true" wsm_persist="true" id="imap.personalNamespace"/>
  244.     <label hidden="true" wsm_persist="true" id="imap.publicNamespace"/>
  245.     <label hidden="true" wsm_persist="true" id="imap.otherUsersNamespace"/>
  246.     <label hidden="true" wsm_persist="true" id="imap.serverDirectory"/>
  247.     <checkbox hidden="true" wsm_persist="true" id="imap.overrideNamespaces"
  248.               prefattribute="value"
  249.               prefstring="mail.server.%serverkey%.override_namespaces"/>
  250.   </hbox>
  251.  
  252.   <!-- NNTP -->
  253.   <hbox hidefor="pop3,imap,movemail" align="center">
  254.     <checkbox wsm_persist="true" id="nntp.notifyOn"
  255.               label="&maxMessagesStart.label;"
  256.               accesskey="&maxMessagesStart.accesskey;"
  257.               oncommand="setupNotifyUI();"
  258.               prefattribute="value"
  259.               prefstring="mail.server.%serverkey%.notify.on"/>
  260.     <textbox wsm_persist="true" id="nntp.maxArticles" size="6"
  261.              observes="broadcaster_notify"
  262.              preftype="int"
  263.              prefstring="mail.server.%serverkey%.max_articles"/>
  264.     <label control="nntp.maxArticles" value="&maxMessagesEnd.label;"
  265.            observes="broadcaster_notify"/>
  266.   </hbox>
  267.   <checkbox hidefor="pop3,imap,movemail" wsm_persist="true" id="nntp.pushAuth"
  268.             label="&alwaysAuthenticate.label;"
  269.             accesskey="&alwaysAuthenticate.accesskey;"
  270.             prefattribute="value"
  271.             prefstring="mail.server.%serverkey%.always_authenticate"/>
  272.  
  273. <!-- take out for now - bug 45079
  274.     <hbox flex="1" hidefor="pop3,imap,movemail">
  275.       <groupbox>
  276.          <caption class="header" label="&abbreviate.label;"/>
  277.  
  278.          <radiogroup wsm_persist="true" id="nntp.abbreviate">
  279.            <radio wsm_persist="true" value="true"
  280.                   label="&abbreviateOn.label;"/>
  281.            <radio wsm_persist="true" value="false" 
  282.                   label="&abbreviateOff.label;"/>
  283.          </radiogroup>
  284.       </groupbox>
  285.     </hbox>
  286. -->
  287.  
  288.   <hbox align="end">
  289.     <vbox align="start" flex="1">
  290.       <checkbox hidefor="pop3,nntp,movemail" wsm_persist="true" id="imap.cleanupInboxOnExit"
  291.                 label="&expungeOnExit.label;"
  292.                 accesskey="&expungeOnExit.accesskey;"
  293.                 prefattribute="value"
  294.                 prefstring="mail.server.%serverkey%.cleanup_inbox_on_exit"/>
  295.       <checkbox hidefor="nntp" wsm_persist="true" id="server.emptyTrashOnExit" 
  296.                 label="&emptyTrashOnExit.label;"
  297.                 accesskey="&emptyTrashOnExit.accesskey;"
  298.                 prefattribute="value"
  299.                 prefstring="mail.server.%serverkey%.empty_trash_on_exit"/>
  300.     </vbox>
  301.     <button label="&advancedButton.label;"
  302.             accesskey="&advancedButton.accesskey;"
  303.             oncommand="onAdvanced();"
  304.             wsm_persist="true" id="server.advancedbutton" 
  305.             prefstring="mail.server.%serverkey%.advanced.disable"
  306.             hidefor="nntp,movemail"/>
  307.   </hbox>
  308.  
  309.   <vbox hidefor="imap,pop3,movemail">
  310.     <label value="&newsrcFilePath.label;" control="nntp.newsrcFilePath"
  311.            accesskey="&newsrcFilePath.accesskey;"/>
  312.     <hbox align="center">
  313.       <textbox readonly="true" wsm_persist="true" flex="1" id="nntp.newsrcFilePath"
  314.                datatype="nsIFileSpec"
  315.                prefstring="mail.server.%serverkey%.newsrc.file" class="uri-element"/>
  316.       <button id="browseForNewsrc" label="&browseNewsrc.label;" filepickertitle="&newsrcPicker.label;"
  317.               accesskey="&browseNewsrc.accesskey;" oncommand="BrowseForNewsrc()"/>
  318.     </hbox>
  319.   </vbox>
  320.   </groupbox>
  321.  
  322.   <separator class="thin"/>
  323.   <vbox>
  324.     <label value="&localPath.label;" control="server.localPath"
  325.            accesskey="&localPath.accesskey;"/>
  326.     <hbox align="center">
  327.       <textbox readonly="true" wsm_persist="true" flex="1" id="server.localPath" datatype="nsIFileSpec"
  328.                prefstring="mail.server.%serverkey%.directory" class="uri-element"/>
  329.       <button id="browseForLocalFolder" label="&browseFolder.label;" filepickertitle="&localFolderPicker.label;"
  330.               accesskey="&browseFolder.accesskey;" oncommand="BrowseForLocalFolders()"/>
  331.     </hbox>
  332.   </vbox>
  333.   <separator class="thin"/>
  334.    <hbox hidefor="imap,pop3,movemail" align="center" valign="middle" iscontrolcontainer="true">
  335.      <label value="&serverDefaultCharset.label;" control="nntp.charset"/>
  336.      <menulist hidable="true" hidefor="imap,pop3,movemail" wsm_persist="true" id="nntp.charset" 
  337.                  ref="NC:DecodersRoot" datasources="rdf:charset-menu"
  338.                  preftype="string" prefstring="mail.server.%serverkey%.charset"> 
  339.        <template>
  340.          <menupopup>
  341.            <menuitem label="rdf:http://home.netscape.com/NC-rdf#Name" value="..." uri="..."/>
  342.          </menupopup>
  343.        </template>
  344.      </menulist>
  345.    </hbox> 
  346. </page>
  347.